package com.gtw.modules.api.service.impl;

import com.gtw.modules.api.service.TbUserBankCardService;
import com.gtw.modules.dao.TbUserBankCardDao;
import com.gtw.modules.entity.TbUserBankCard;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/** 用户提现信息
 *
 * @author wuye
 * @date 2018/3/13
 */
@Service
public class TbUserBankCardServiceImpl implements TbUserBankCardService {

    @Autowired
    private TbUserBankCardDao tbUserBankCardDao;

    @Override
    @Transactional(rollbackFor=Exception.class)
    public int deleteByPrimaryKey(Integer id) {
        return tbUserBankCardDao.deleteByPrimaryKey(id);
    }

    @Override
    @Transactional(rollbackFor=Exception.class)
    public int insert(TbUserBankCard record) {
        return tbUserBankCardDao.insert(record);
    }

    @Override
    @Transactional(rollbackFor=Exception.class)
    public int insertSelective(TbUserBankCard record) {
        return tbUserBankCardDao.insertSelective(record);
    }

    @Override
    public TbUserBankCard selectByPrimaryKey(Integer id) {
        return tbUserBankCardDao.selectByPrimaryKey(id);
    }

    @Override
    @Transactional(rollbackFor=Exception.class)
    public int updateByPrimaryKeySelective(TbUserBankCard record) {
        return tbUserBankCardDao.updateByPrimaryKeySelective(record);
    }

    @Override
    @Transactional(rollbackFor=Exception.class)
    public int updateByPrimaryKey(TbUserBankCard record) {
        return tbUserBankCardDao.updateByPrimaryKey(record);
    }

//    @Override
//    public TbUserBankCard foundByIdBankCard(String uid) {
//        return tbUserBankCardDao.foundByIdBankCard(uid);
//    }

    @Override
    public List<TbUserBankCard> foundByIdBankCard2(String uid) {
        return tbUserBankCardDao.foundByIdBankCard2(uid);
    }
}
